﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using CrystalDecisions.Shared;
using CrystalDecisions.ReportSource;
using CrystalDecisions.CrystalReports.Engine;

namespace UI.Secretaria
{
    public class GenerarReportesIpnmSecretaria : ReportClass
    {
        String NombreReporte;
        public GenerarReportesIpnmSecretaria(String nombreReporte)
        {
            this.NombreReporte = nombreReporte + ".rpt";
        }


        public override string ResourceName
        {
            get
            {
                return this.NombreReporte ;
            }
            set
            {
                // Do nothing
            }
        }

        public override bool NewGenerator
        {
            get
            {
                return true;
            }
            set
            {
                // Do nothing
            }
        }


        public override string FullResourceName
        {
            get
            {
                return "UI.Secretaria." + this.NombreReporte + ".rpt";
            }
            set
            {
                // Do nothing
            }
        }


        [Browsable(false)]
        [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
        public CrystalDecisions.CrystalReports.Engine.Section ReportHeaderSection1
        {
            get
            {
                return this.ReportDefinition.Sections[0];
            }
        }

        [Browsable(false)]
        [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
        public CrystalDecisions.CrystalReports.Engine.Section PageHeaderSection1
        {
            get
            {
                return this.ReportDefinition.Sections[1];
            }
        }

        [Browsable(false)]
        [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
        public CrystalDecisions.CrystalReports.Engine.Section DetailSection1
        {
            get
            {
                return this.ReportDefinition.Sections[2];
            }
        }


        [Browsable(false)]
        [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
        public CrystalDecisions.CrystalReports.Engine.Section ReportFooterSection3
        {
            get
            {
                return this.ReportDefinition.Sections[3];
            }
        }


        [Browsable(false)]
        [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
        public CrystalDecisions.CrystalReports.Engine.Section ReportFooterSection1
        {
            get
            {
                return this.ReportDefinition.Sections[4];
            }
        }

        [Browsable(false)]
        [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
        public CrystalDecisions.CrystalReports.Engine.Section ReportFooterSection2
        {
            get
            {
                return this.ReportDefinition.Sections[5];
            }
        }


        [Browsable(false)]
        [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
        public CrystalDecisions.CrystalReports.Engine.Section PageFooterSection1
        {
            get
            {
                return this.ReportDefinition.Sections[6];
            }
        }










        [System.Drawing.ToolboxBitmapAttribute(typeof(CrystalDecisions.Shared.ExportOptions), "report.bmp")]
        public class Cachednomina_final : Component, ICachedReport
        {

            public Cachednomina_final()
            {
            }

            [Browsable(false)]
            [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
            public virtual bool IsCacheable
            {
                get
                {
                    return true;
                }
                set
                {
                    // 
                }
            }

            [Browsable(false)]
            [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
            public virtual bool ShareDBLogonInfo
            {
                get
                {
                    return false;
                }
                set
                {
                }
            }

            [Browsable(false)]
            [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
            public virtual System.TimeSpan CacheTimeOut
            {
                get
                {
                    return CachedReportConstants.DEFAULT_TIMEOUT;
                }
                set
                {
                    // 
                }
            }

            public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
            {
                nomina_final rpt = new nomina_final();
                rpt.Site = this.Site;
                return rpt;
            }

            public virtual string GetCustomizedCacheKey(RequestContext request)
            {
                String key = null;
                return key;
            }



        }
    }
}